home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / pmake / RCS / debugflags.mk,v < prev    next >
Encoding:
Text File  |  1992-11-28  |  2.2 KB  |  122 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.3
  10. date     92.11.27.17.16.46;  author jhh;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     92.06.10.13.05.47;  author jhh;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     91.04.30.12.09.39;  author kupfer;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @System makefile to set debugging and optimization flags.
  27. @
  28.  
  29.  
  30. 1.3
  31. log
  32. @added AGFLAG and AGDFLAG
  33. @
  34. text
  35. @#
  36. # This Makefile is included by several other system Makefiles.  It
  37. # sets OFLAG and GFLAG, which control optimization and debugging
  38. # support, and are eventually included in CFLAGS.  This Makefile is
  39. # distinct from tm.mk because the comments in tm.mk state that this
  40. # functionality should be separate.
  41. # This Makefile uses the following variables as input:
  42. # NOOPTIMIZATION    If this variable is defined, then optimization
  43. #            is suppressed.
  44. # TM            The machine type being compiled for.
  45. #
  46. # $Header: /sprite/lib/pmake/RCS/debugflags.mk,v 1.2 92/06/10 13:05:47 jhh Exp $
  47. #
  48.  
  49. #
  50. # OFLAG : optimization flag
  51. # GFLAG : debugging support when optimization is turned on
  52. # GDFLAG : debugging support when optimization is turned off (D for Debug)
  53. # AGFLAG: same as for GFLAG, but for .s files
  54. # AGDFLAG: samse as for GDFLAG, but for .s files
  55.  
  56. #ifndef NOOPTIMIZATION
  57. OFLAG = -O
  58. #if !empty(TM:Mds3100) || !empty(TM:Mds5000)
  59. #if empty(CC:Mgcc)
  60. GFLAG = -g3
  61. GDFLAG = -g
  62. AGFLAG = $(GFLAG)
  63. AGDFLAG = $(GDFLAG)
  64. #else
  65. # I wish I knew why GFLAG is set empty here. -mdk
  66. GFLAG    =
  67. GDFLAG    =
  68. AGFLAG = $(GFLAG)
  69. AGDFLAG = $(GDFLAG)
  70. #endif /* gcc */
  71. #else /* not compiling for a DECstation */
  72. GFLAG = -g
  73. GDFLAG = -g
  74. AGFLAG =
  75. AGDFLAG = 
  76. #endif
  77.  
  78. #else /* NOOPTIMIZATION */
  79.  
  80. OFLAG =
  81. GFLAG = -g
  82. GDFLAG = -g
  83. #if !empty(TM:Mds3100) || !empty(TM:Mds5000)
  84. AGFLAG = $(GFLAG)
  85. AGDFLAG = $(GDFLAG)
  86. #else
  87. AGFLAG =
  88. AGDFLAG = 
  89. #endif
  90. #endif /* NOOPTIMIZATION */
  91. @
  92.  
  93.  
  94. 1.2
  95. log
  96. @cleaned out some obsolete machine types
  97. @
  98. text
  99. @d12 1
  100. a12 1
  101. # $Header: /sprite/lib/pmake/RCS/debugflags.mk,v 1.1 91/04/30 12:09:39 kupfer Exp $
  102. d15 7
  103. d27 3
  104. d33 3
  105. d39 3
  106. d48 8
  107. @
  108.  
  109.  
  110. 1.1
  111. log
  112. @Initial revision
  113. @
  114. text
  115. @d12 1
  116. a12 1
  117. # $Header$
  118. d17 1
  119. a17 1
  120. #if !empty(TM:Mds3100) || !empty(TM:Mjhh) || !empty(TM:Mcleands3100) || !empty(TM:Mds5000)
  121. @
  122.